export const rules = {
    roleName: [
        { required: true, trigger: 'blur', min: 2, max: 10, message: '请输入2-10个字符！' },
        {
            pattern: new RegExp(/^((?!\+|\.|\\|\/|:|\*|\?|\!|<|>|\||'|%|@|#|&|\$|\^|&|\*).){1,50}$/),
            message: '名称不允许包含特殊字符',
            trigger: 'blur'
        }
    ],
    roleCode: [{ required: true, message: '请输入角色编码', trigger: 'blur' }],
    roleKey: [{ required: true, message: '请选择权限信息', trigger: 'change' }],
    menus: [{ required: true, message: '请选择路由信息', trigger: 'change' }]
};
